package com.iotek.ssm.service.impl;

import com.iotek.ssm.mapper.RewardPunishmentMapper;
import com.iotek.ssm.pojo.CustomQueryVo;
import com.iotek.ssm.pojo.RewardPunishment;
import com.iotek.ssm.service.RewardPunishmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("rewardPunishmentService")
public class RewardPunishmentServiceImpl implements RewardPunishmentService {

    @Autowired
    private RewardPunishmentMapper rewardPunishmentMapper;


    public List<RewardPunishment> findRewardInformation(CustomQueryVo customQueryVo) throws Exception {
        return rewardPunishmentMapper.findRewardInformation(customQueryVo);
    }

    public Integer getTotalRewardMoney(CustomQueryVo customQueryVo) throws Exception {
        return rewardPunishmentMapper.getTotalRewardMoney(customQueryVo);
    }
}
